<div id="messages">
  <div style="margin-left: auto; margin-right: auto; width: 160px">
    <%= link_to_function(image_tag("messages_new.png"), nil) do |page|
        page['new_message_form'].toggle "Blind"
        end  %>
    <%= link_to_remote image_tag("messages_sent.png"), :url => { :controller => "messages", :action => 'show_sent' } %>
    <%= link_to_remote image_tag("messages_received.png"), :url => { :controller => "messages", :action => 'show_received' } %>
  </div>
  <div id="messages_received"></div>
  <div id="messages_sent"></div>
</div>
<div id="message_errors" class="errors"></div>
<div id="new_message_form" style="display: none;">
  <%= render :partial => 'messages/new' %>
</div>